<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>一个首页</title>
    <!-- 引入CSS文件 -->
    <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}">
</head>
<body>
<h1>
    这里是上传页面
</h1>
<form action="/sm2/file/up" class="layui-form" enctype="multipart/form-data" method="post">
    头像：<input name="photo" type="file"> <br>
    <input type="submit" value="点击上传图片">
</form>

<!-- 引入JS文件 -->
<script th:src="@{/static/layui/layui.js}"></script>
<script th:src="@{/static/vue/vue.js}"></script>
<script th:src="@{/static/vue/axios.min.js}"></script>
<script th:src="@{/static/jquery/jquery.js}"></script>

</body>
</html>